<!-- 营期页面 -->
<template>
	<armed-card-list :routeType="routeType">
		<template #top>
			<uv-navbar :title="title" @leftClick="leftClick" :placeholder="true"></uv-navbar>
		</template>
	</armed-card-list>
</template>

<script setup>
import { onLoad } from '@dcloudio/uni-app';
import { ref, computed } from 'vue';
const routeType = ref('');
function leftClick() {
	uni.navigateBack();
}
// 1 单日营；2 多日营；3 冬令营；4 夏令营；5 亲子营
const title = computed(() => {
	let list = [
		{ routeType: '1', title: '单日营' },
		{ routeType: '2', title: '多日营' },
		{ routeType: '3', title: '冬令营' },
		{ routeType: '4', title: '夏令营' },
		{ routeType: '5', title: '亲子营' }
	];
	return list.find((item) => item.routeType == routeType.value).title;
});

onLoad((e) => {
	routeType.value = e.routeType;
});
</script>

<style scoped lang="scss">
.main {
	height: 100%;
}
</style>
